package com.sjl.springboot.domain.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Min;
import java.io.Serializable;
import java.util.Date;

@Data
public class SysUser extends CommParam implements Serializable {

  @Min(value = 1,message = "用户ID,错误没有此用户")
  private long userId;
  private long deptId;
  private String loginName;
  private String userName;
  private String userType;
  private String email;
  private String phonenumber;
  private String sex;
  private String avatar;
  private String password;
  private String salt;
  private String status;
  private char delFlag;
  private String loginIp;
  @JsonFormat(pattern="yyyy-MM-dd HH：mm：ss",timezone="GMT+8")
  private Date loginDate;
  private String createBy;
  private Date createTime;
  private String updateBy;
  private Date updateTime;
  private String remark;



}
